package com.sinotopia.atlantis.modules.sys.security.shiro.web.filter.authc;

/**
 * All rights Reserved, Designed By www.jeeweb.cn
 *
 * @version V1.0
 * @title: UsernamePasswordToken.java
 * @package cn.jeeweb.modules.sys.security.shiro.web.filter.authc
 * @description: 用户和密码（包含验证码）令牌类
 * @author: 王存见
 * @date: 2017年6月26日 下午5:56:18
 * @copyright: 2017 www.jeeweb.cn Inc. All rights reserved.
 */
public class UsernamePasswordToken extends org.apache.shiro.authc.UsernamePasswordToken {

    private static final long serialVersionUID = 1L;

    private String captcha;
    private boolean mobileLogin;

    public UsernamePasswordToken() {
        super();
    }

    public UsernamePasswordToken(String username, char[] password, boolean rememberMe, String host, String captcha,
                                 boolean mobileLogin) {
        super(username, password, rememberMe, host);
        this.captcha = captcha;
        this.mobileLogin = mobileLogin;
    }

    public String getCaptcha() {
        return captcha;
    }

    public void setCaptcha(String captcha) {
        this.captcha = captcha;
    }

    public boolean isMobileLogin() {
        return mobileLogin;
    }

}